﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="ServerWeb.Home" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <asp:DropDownList ID="ddlStatus" runat="server">
        <asp:ListItem Text="锁屏" Value="Lock"/>
        <asp:ListItem Text="解锁" Value="Unlock" />
        <asp:ListItem Text="停止服务" Value="ServiceStop" />
        <asp:ListItem Text="计划通过" Value="PlanPass" />
        <asp:ListItem Text="计划拒绝" Value="PlanDeny" />
        <asp:ListItem Value="Sleep" Text="" />
       </asp:DropDownList>
       <asp:Button ID="btn" runat="server" Text="Set Status" OnClick="btn_Click"/>
       <asp:Button ID="btnGetStatus" runat="server" Text="Get Status" OnClick="btnGetStatus_Click" />
    </div>
    <div>
        <asp:Button ID="btnTest" Text="更新客户端状态" OnClick="btnTest_Click" runat="server"/>
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        Width="100%">
        <Columns>
            <asp:TemplateField HeaderText="开始时间">
                <ItemTemplate>
                    <%# Eval("StrStartTime") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="结束时间">
                <ItemTemplate>
                    <%# Eval("StrEndTime") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                   <%#Eval("Status") %>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
